package com.tao.graduation.Dao;

import com.tao.graduation.Pojo.Appointment;
import com.tao.graduation.Pojo.Doctor;
import com.tao.graduation.Pojo.Hospitalization;
import com.tao.graduation.Pojo.Seek;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface DoctorDao {
    public Doctor queryDoctorById(Integer id);
    public List<Map<Object,Object>> queryCurrentAppointment(Integer doctorId, String today,Integer index,Integer LIMIT);

    int queryPatientIdByCertId(String certId);

    int insertSeek(Seek seek);


    int insertHospitalization(Hospitalization hospitalization);

    int Prescribe(String drugs,String days,Integer patientId);

    int SuccessSeek(Integer patientId,Integer doctorId,String state,String days);

    List<Map<Object,Object>> querySeekJiLu(Integer doctorId,Integer index,Integer LIMIT);
    int querySeekJiLuCount(Integer doctorId);

    List<Map<Object,Object>> searchJiLu(Integer patientId);
}
